﻿using UnityEngine;

namespace Hsenl {
    public enum UILayoutCloseType {
        Right, // 只右
        Left,
        RightFirst, // 优先右边
        LeftFirst,
        All,
    }
    
    [DisallowMultipleComponent]
    public class UILayout : UnitySingleton<UILayout> {

        public void AddLayer(string layerName) {
            
        }

        public void RemoveLayer(string layerName) {
            
        }

        public void AddUI(string layerName, IUI ui) {
            
        }

        public void RemoveUI(string layerName, IUI ui) {
            
        }

        public Vector2 GetPosition(string layerName, IUI ui) {
            return default;
        }
        
        private class Layer {
            
        }
    }
}